Involver Developer Network : Analytics Guide
This page last changed on Jun 26, 2012 by jed.wheeler@involver.com.
The SML developer platform automatically logs many actions in AMP's built-in Analytics and provides tools to manually log custom actions using Javascript. You can also use any Javascript-based third-party analytics solution (Google Analytics for example). Simply add the js to top of your page as instructed and add facebook.involver.com to your list of domains. List of logging items
Automatic Logging in SML & AMPThe Involver platform automatically logs many common actions in pages registered in AMP and in SML tabs. Auto Logging---> Global Logging (Occurs on all Facebook fan pages registered in AMP):
Auto Logging-->Application Specific Logging:_
Manual LoggingYou can call these JavaScript functions to add custom logging to your SML tabs. Basic documentation for each is included on this page and you can find more detailed information for each of them on their corresponding pages.
The data types for the params in these functions are:
Analytics.logActionExample : <script type="text/javascript"> function highlightAction(div_id){ Analytics.logAction('subtab highlighted', {}); } </script> <div id="some_sub_tab" onclick="highlightAction('some_sub_tab')"> This is a tab with some interesting information inside and we care if they click on it. </div> Analytics Tab View:Note: Current implementation of analytics does not allow user to access values apart from name of the action, future implementations may allow. Please consult SML documentation for any discrepancy. Using Javascript to add custom tracking.You can add additional tracking to your tab by using the Analytics.logClickthrough and Analytics.logClickthroughRedirect functions. Most SML interact-able elements allow for the firing of custom javascript either onclick or onfirstclick. you can reference the documentation for the specific feature block or tag you need to use to confirm availability. You can also use CSS classes and ID's to fire javascript remotely from anywhere in your tab. Analytics.logClickthroughExample: <a href="http://yahoo.com" onclick="Analytics.logClickthrough('Clickthrough Count')">This is a link to Yahoo</a>
Analytics tab view: Analytics.logClickthroughRedirectExample: <a href="#_" onclick="Analytics.logClickthroughRedirect('Google Redirect', 'http://www.google.com')">This is a link to Google</a> |
![]() |
Document generated by Confluence on Feb 12, 2013 09:09 |